//
//  WPCLayout.h
//  Wallpaper.co
//
//  Created by zhou_yuepeng on 2017/9/8.
//  Copyright © 2017年 www.dahuatech.com. All rights reserved.
//

#import <Foundation/Foundation.h>
//define this constant if you want to use Masonry without the 'mas_' prefix
#define MAS_SHORTHAND
//define this constant if you want to enable auto-boxing for default syntax
#define MAS_SHORTHAND_GLOBALS
#import "Masonry.h"
#import "MBProgressHUD/MBProgressHUD.h"

#define CREATE_ELE(type, obj, super)\
obj = [[type alloc] init];\
[super addSubview:obj];

#define CREATE_UIButton(obj, super, imgNamed, type)\
CREATE_ELE(UIButton, obj, super)\
[obj setImage:[UIImage imageNamed:imgNamed] forState:UIControlStateNormal];\
obj.tag = type;\
obj.enabled = NO;


typedef NS_ENUM(NSUInteger, E_BTN_TYPE)
{
    BTN_SHARE = 1,
    BTN_DOWNLOAD,
    BTN_FAVORITE,
    BTN_LOGO,
    BTN_SORT,
};
